/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lesson3.com.demo.nested;


public class Demo {
    
    int instanceFieldOfDemo;
    
    private static int staticFieldOfDemo;
    
    
    // it's called a "nested" clas
    public static class NestedClassInDemo {
        
        public void f(){
            System.out.println("static field of demo "+staticFieldOfDemo);
           // System.out.println("instance field of demo "+instanceFieldOfDemo); // won't compile
        }
        
    }

}
